// import { tableProps } from 'element-plus';
import type { TableColumnCtx } from 'element-plus';

export type TableColumn<T = any> = TableColumnCtx<T> & { slotName?: string; [key: string]: any };

export type TableProps = {
  columns: TableColumn<any>[];
  options?: any[];
  data: any[];
};

// const ColumnsType: TableColumnCtx<any>[] = []

export const tableProps = {
  columns: {
    //@ts-ignore
    type: Array,
    default: () => []
  },
  options: {
    type: Array,
    default: () => []
  },
  data: {
    type: Array,
    default: () => []
  }
};
